from django.http.response import JsonResponse
def sendmsg(str):
    context = {
        'message': str
    }
    return JsonResponse(context)